﻿using SageKing.UI.Razor.Base.Features;

namespace SageKing.UI.Blazor.MudBlazorUI.Features;

[DependsOn(typeof(SageKingUIRazorBaseFeature))]
public class MudBlazorUIFeature : FeatureBase
{
    public MudBlazorUIFeature(IModule module) : base(module)
    {
    }

    /// <summary>
    /// AntDesignOptions
    /// </summary>
    public Action<MudBlazorUIOptions> AntDesignServiceConfiguration { get; set; } = _ => { };

    /// <inheritdoc />
   public override void Apply(IConfigurationManager configurationManager, IHostEnvironment hostEnvironment)
    {
        Services.Configure(AntDesignServiceConfiguration)
            .AddMudServices()
           ;
    }
}
